﻿using System;
using System.ComponentModel;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    public class TopTaohuaSearchItems : BaseObject
    {
        //begin
        public TopTaohuaSearchItems(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        [Association("TaohuaSearchItemsTaohuaSearchItems", typeof(TopTaohuaSearchItem))]
        public XPCollection TaohuaSearchItems
        {
            get
            {
                return GetCollection("TaohuaSearchItems");
            }
        }
        [Association("TaohuaSearchItemsCatePaths", typeof(TopTaohuaCategory))]
        public XPCollection CatePaths
        {
            get
            {
                return GetCollection("CatePaths");
            }
        }
        [Association("TaohuaSearchItemsCateStats", typeof(TopTaohuaCateStat))]
        public XPCollection CateStats
        {
            get
            {
                return GetCollection("CateStats");
            }
        }
        private long _TotalItem;
        public long TotalItem
        {
            get
            {
                return _TotalItem;
            }
            set
            {
                SetPropertyValue("TotalItem", ref _TotalItem, value);
            }
        }
        //end
    }
}
